-- GENERATED SPELL FOR [Patchwork Horror] --


function spell0_10414(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(16345,pUnit)
pUnit:RegisterEvent('Sorts_10414', 0, 1)
end

function spell1_10414(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10414', 550, 1)
end

function Sorts_10414(pUnit, Event)
local choix_sorts_10414 = math.random(0, 1)
if choix_sorts_10414 == 0 then
pUnit:RegisterEvent('spell0_10414', 1, 1)
end
if choix_sorts_10414 == 1 then
pUnit:RegisterEvent('spell1_10414', 1, 1)
end
end

function mob10414_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10414', math.random(1500, 3000), 1)
end

function mob10414_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10414_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10414_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10414, 1, 'mob10414_Action')
RegisterUnitEvent(10414, 2, 'mob10414_Leave')
RegisterUnitEvent(10414, 3, 'mob10414_Kill')
RegisterUnitEvent(10414, 4, 'mob10414_Die')
